<?php
C_base::yn_file('m'.DS.'Model.php');
class recruitModel extends model{
/***************************个人用户*******************************/
	function user_ss($w=array()){//查询多个
		return $this->user()->w($w)->ss();
	}	
		
	function user_s($w){//查询单个
		return $this->user()->w($w)->s();
	}
	
	function user_u($w,$u){//修改
		return $this->user()->w($w)->u($u);
	}
	
	function user_d($w){//删除
		return $this->user()->w($w)->d();
	}
	
	function user_c($w){//写入
		return $this->user()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function user(){
		return $this->db_cms()->recruit_user;
	}
/****************************企业用户**********************************/
	function qy_c($c=array()){//用户写入
		return $this->firm_user()->c($c);
	}
	
	function qy_s($w){//用户查询单条
		return $this->firm_user()->w($w)->s();
	}
	
	function qy_ss($w=array()){//用户查询多条
		return $this->firm_user()->w($w)->ss();
	}
	
	function qy_u($w,$u){//用户修改
		return $this->firm_user()->w($w)->u($u);
	}
	
	function qy_d($w){//用户删除
		return $this->firm_user()->w($w)->d();
	}
	
	/**
	 * 企业用户表操作
	 */
	function firm_user(){
		return $this->db_cms()->recruit_firm;
	}
	
	function qys_c($c){//企业信息写入
		return $this->firm_users()->c($c);
	}
	
	function qys_s($w){//企业信息查询单条
		return $this->firm_users()->w($w)->s();
	}
	
	function qys_ss($w){//企业信息查询多条
		return $this->firm_users()->w($w)->ss();
	}
	
	function qys_u($w,$u){//企业信息修改
		return $this->firm_users()->w($w)->u($u);
	}
	
	function qys_d($w){//企业信息删除
		return $this->firm_users()->w($w)->d();
	}
	
	/**
	 * 企业资料表操作
	 */
	function firm_users(){
		return $this->db_cms()->recruit_firm_base;
	}
/***************************企业岗位******************/
	function qy_gw_s($b,$w){//查询岗位单条
		return $this->firm_gangwei($b)->w($w)->s();
	}
	
	function qy_gw_ss($b,$w,$page='',$pagesize=''){//查询岗位多条
		if($page){
			$rs['data'] = $this->firm_gangwei($b)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->firm_gangwei($b)->w($w)->n();
			return $rs;
		}else{
			return $this->firm_gangwei($b)->w($w)->o('time')->ss();
		}
	}
	
	function qy_gw_ss_p($b,$w,$page,$pagesize){//查询岗位多条
		return $this->firm_gangwei($b)->w($w)->p($page,$pagesize)->ss();
	}
	function qy_gw_sso($b,$w,$wo){//查询多条
		$rs = $this->firm_gangwei($b)->w($w);
		for($i=0;$i<count($wo);$i++){
			$rs->wo($wo[$i]);
		}
		return $rs->ss();
	}
	
	function qy_gw_c($b,$w){//发布岗位
		return $this->firm_gangwei($b)->c($w);
	}
	
	function qy_gw_u($b,$w,$u){//修改岗位
		return $this->firm_gangwei($b)->w($w)->u($u);
	}
	
	function qy_gw_d($b,$w){//删除岗位
		return $this->firm_gangwei($b)->w($w)->d();
	}
	/**
	 * 企业岗位表操作
	 */
	function firm_gangwei($b){
		$biao = 'recruit_firm_gw_'.util::end1($b);
		return $this->db_cms()->$biao;
	}
	
	function qy_gw_tj_c($c){/*企业统计写入*/
		return $this->firm_gangwei_tj()->c($c);
	}
	
	function qy_gw_tj_s($w){/*企业统计查询*/
		return $this->firm_gangwei_tj()->w($w)->s();
	}
	
	function qy_gw_tj_ss($w){/*企业统计查询*/
		return $this->firm_gangwei_tj()->w($w)->ss();
	}
	
	function qy_gw_tj_u($w,$u){/*企业统计修改*/
		return $this->firm_gangwei_tj()->w($w)->u($u);
	}
	
	function qy_gw_tj_d($w){/*企业统计删除*/
		return $this->firm_gangwei_tj()->w($w)->d();
	}
	/**
	 * 企业岗位统计表操作
	 */
	function firm_gangwei_tj(){
		return $this->db_cms()->recruit_firm_count;
	}
/***************************个人用户基本信息***************************/
	function ubase_ss($w=array()){//查询多个
		return $this->ubase()->w($w)->ss();
	}
	
	function ubase_s($w){//查询单个
		return $this->ubase()->w($w)->s();
	}
	
	function ubase_u($w,$u){//修改
		return $this->ubase()->w($w)->u($u);
	}
	
	function ubase_d($w){//删除
		return $this->ubase()->w($w)->d();
	}
	
	function ubase_c($w){//写入
		return $this->ubase()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function ubase(){
		return $this->db_cms()->recruit_user_base;
	}
	
/***************************个人简历*******************************/
	function resume_ss($uid,$w=array(),$page='',$pagesize=''){//查询多个
		if($page){
			$rs['data'] = $this->resume($uid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->resume($uid)->w($w)->n();
			return $rs;
		}else{
			return $this->resume($uid)->w($w)->ss();
		}
	}
	
	function resume_sso($uid,$w=array(),$wo=array()){//查询多条
		$rs = $this->resume($uid)->w($w);
		for($i=0;$i<count($wo);$i++){
			$rs->wo($wo[$i]);
		}
		return $rs->ss();
	}
	
	function resume_ss_p($uid,$w=array(),$page,$pagesize){//查询多个
		return $this->resume($uid)->w($w)->o('utime')->p($page,$pagesize)->ss();
	}
	
	function resume_s($uid,$w){//查询单个
		return $this->resume($uid)->w($w)->s();
	}
	
	function resume_u($uid,$w,$u){//修改
		return $this->resume($uid)->w($w)->u($u);
	}
	
	function resume_d($uid,$w){//删除
		return $this->resume($uid)->w($w)->d();
	}
	
	function resume_c($uid,$w){//写入
		return $this->resume($uid)->c($w);
	}
	
	function resume_del($uid,$w){//删除多个
		return $this->resume($uid)->w($w)->del_all();
	}
	
	/**
	 * 人力资源系统个人简历数据库
	 */
	function resume($uid){
		$biao = 'recruit_resume_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/***************************简历投递*******************************/
/******************用户分类表***************************/
	function toudi_ss($uid,$w=array(),$page='',$pagesize=''){//查询多个
		if($page){
			$rs['data'] = $this->toudi($uid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->toudi($uid)->w($w)->n();
			return $rs;
		}else{
			return $this->toudi($uid)->w($w)->ss();
		}
	}
	
	function toudi_s($uid,$w){//查询单个
		return $this->toudi($uid)->w($w)->s();
	}
	
	function toudi_u($uid,$w,$u){//修改
		return $this->toudi($uid)->w($w)->u($u);
	}
	
	function toudi_d($uid,$w){//删除
		return $this->toudi($uid)->w($w)->d();
	}
	
	function toudi_c($uid,$w){//写入
		return $this->toudi($uid)->c($w);
	}
	
	function toudi_del($uid,$w){//删除多个
		return $this->toudi($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function toudi($uid){
		$biao = 'recruit_user_td_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
/******************企业分类表***************************/
	function qtoudi_ss($qid,$w=array(),$page='',$pagesize=''){//查询多个
		if ($page){
			$rs['data'] = $this->qtoudi($qid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->qtoudi($qid)->w($w)->n();
			return $rs;
		}else {
			return $this->qtoudi($qid)->w($w)->ss();
		}
	}
	
	function qtoudi_s($qid,$w){//查询单个
		return $this->qtoudi($qid)->w($w)->s();
	}
	
	function qtoudi_u($qid,$w,$u){//修改
		return $this->qtoudi($qid)->w($w)->u($u);
	}
	
	function qtoudi_d($qid,$w){//删除
		return $this->qtoudi($qid)->w($w)->d();
	}
	
	function qtoudi_c($qid,$w){//写入
		return $this->qtoudi($qid)->c($w);
	}
	
	function qtoudi_del($qid,$w){//删除多个
		return $this->qtoudi($qid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function qtoudi($qid){
		$biao = 'recruit_firm_td_'.util::end1($qid);
		return $this->db_cms()->$biao;
	}
	
/******************vip专家分类表***************************/	
	function vtoudi_ss($zjid,$w=array(),$page='',$pagesize=''){//查询多个
		if($page){
			$rs['data'] = $this->vtoudi($zjid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->vtoudi($zjid)->w($w)->n();
			return $rs;
		}else{
			return $this->vtoudi($zjid)->w($w)->ss();
		}
	}
	
	function vtoudi_s($zjid,$w){//查询单个
		return $this->vtoudi($zjid)->w($w)->s();
	}
	
	function vtoudi_u($zjid,$w,$u){//修改
		return $this->vtoudi($zjid)->w($w)->u($u);
	}
	
	function vtoudi_d($zjid,$w){//删除
		return $this->vtoudi($zjid)->w($w)->d();
	}
	
	function vtoudi_c($zjid,$w){//写入
		return $this->vtoudi($zjid)->c($w);
	}
	
	function vtoudi_del($zjid,$w){//删除多个
		return $this->vtoudi($zjid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function vtoudi($zjid){
		$biao = 'recruit_vzj_td_'.util::end1($zjid);
		return $this->db_cms()->$biao;
	}
	
/***************************用户统计*******************************/
	function tongji_ss($w=array()){//查询多个
		return $this->tongji()->w($w)->ss();
	}
	
	function tongji_s($w){//查询单个
		return $this->tongji()->w($w)->s();
	}
	
	function tongji_u($w,$u){//修改
		return $this->tongji()->w($w)->u($u);
	}
	
	function tongji_d($w){//删除
		return $this->tongji()->w($w)->d();
	}
	
	function tongji_c($w){//写入
		return $this->tongji()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function tongji(){
		return $this->db_cms()->recruit_user_count;
	}
	
/***************************用户收藏职位*****************************/
	function shoucang_ss($uid,$w=array(),$page='',$pagesize=''){//查询多个
		if($page){
			return $this->shoucang($uid)->w($w)->o('time')->p($page,$pagesize)->ss();
		}else{
			return $this->shoucang($uid)->w($w)->ss();
		}
	}
	
	function shoucang_n($uid,$w){//数量
		return $this->shoucang($uid)->w($w)->n();
	}
	
	function shoucang_s($uid,$w){//查询单个
		return $this->shoucang($uid)->w($w)->s();
	}
	
	function shoucang_u($uid,$w,$u){//修改
		return $this->shoucang($uid)->w($w)->u($u);
	}
	
	function shoucang_d($uid,$w){//删除
		return $this->shoucang($uid)->w($w)->d();
	}
	
	function shoucang_c($uid,$w){//写入
		return $this->shoucang($uid)->c($w);
	}
	
	function shoucang_del($uid,$w){//删除多个
		return $this->shoucang($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function shoucang($uid){
		$biao = 'recruit_user_sc_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/***************************积分充值记录*****************************/
	function pay_ss($uid,$w=array()){//查询多个
		return $this->pay($uid)->w($w)->ss();
	}
	
	function pay_s($uid,$w){//查询单个
		return $this->pay($uid)->w($w)->s();
	}
	
	function pay_u($uid,$w,$u){//修改
		return $this->pay($uid)->w($w)->u($u);
	}
	
	function pay_d($uid,$w){//删除
		return $this->pay($uid)->w($w)->d();
	}
	
	function pay_c($uid,$w){//写入
		return $this->pay($uid)->c($w);
	}
	
	function pay_del($uid,$w){//删除多个
		return $this->pay($uid)->w($w)->del_all();
	}
	
	function pay($uid){
		$id= 'recruit_user_pay_'.util::end1($uid);
		return $this->db_cms()->$id;
	}
/***************************专家面试意见*****************************/
	function view_ss($uid,$w=array()){//查询多个
		return $this->view($uid)->w($w)->ss();
	}
	
	function view_s($uid,$w){//查询单个
		return $this->view($uid)->w($w)->s();
	}
	
	function view_u($uid,$w,$u){//修改
		return $this->view($uid)->w($w)->u($u);
	}
	
	function view_d($uid,$w){//删除
		return $this->view($uid)->w($w)->d();
	}
	
	function view_c($uid,$w){//写入
		return $this->view($uid)->c($w);
	}
	
	function view_del($uid,$w){//删除多个
		return $this->view($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function view($uid){
		$biao = 'recruit_user_view_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
/***************************系统通知*****************************/
	function tz_ss($uid,$w=array()){//查询多个
		return $this->tz($uid)->w($w)->ss();
	}
	
	function tz_n($uid,$w){//数量
		return $this->tz($uid)->w($w)->n();
	}
	
	function tz_s($uid,$w){//查询单个
		return $this->tz($uid)->w($w)->s();
	}
	
	function tz_u($uid,$w,$u){//修改
		return $this->tz($uid)->w($w)->u($u);
	}
	
	function tz_d($uid,$w){//删除
		return $this->tz($uid)->w($w)->d();
	}
	
	function tz_c($uid,$w){//写入
		return $this->tz($uid)->c($w);
	}
	
	function tz_del($uid,$w){//删除多个
		return $this->tz($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function tz($uid){
		$biao = 'tongzhi_'.util::end2($uid);
		return $this->db_cms()->$biao;
	}
/********************************职位类别******************************/
	function job_c($w){//添加
		return $this->job()->c($w);
	}
	
	function job_s($w){//查询单条
		return $this->job()->w($w)->s();
	}
	
	function job_ss($w=array()){//查询多条
		return $this->job()->w($w)->ss();
	}
	
	function job_u($w,$u){//修改
		return $this->job()->w($w)->u($u);
	}
	
	function job_d($w){//删除
		return $this->job()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function job(){
		return $this->db_cms()->recruit_job;
	}
	
/********************************行业类别******************************/
	function industry_c($w){//添加
		return $this->industry()->c($w);
	}
	
	function industry_s($w){//查询单条
		return $this->industry()->w($w)->s();
	}
	
	function industry_ss($w=array()){//查询多条
		return $this->industry()->w($w)->ss();
	}
	
	function industry_u($w,$u){//修改
		return $this->industry()->w($w)->u($u);
	}
	
	function industry_d($w){//删除
		return $this->industry()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function industry(){
		return $this->db_cms()->recruit_industry;
	}
	
/********************************专业类别******************************/
	function major_c($w){//添加
		return $this->major()->c($w);
	}
	
	function major_s($w){//查询单条
		return $this->major()->w($w)->s();
	}
	
	function major_ss($w=array()){//查询多条
		return $this->major()->w($w)->ss();
	}
	
	function major_u($w,$u){//修改
		return $this->major()->w($w)->u($u);
	}
	
	function major_d($w){//删除
		return $this->major()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function major(){
		return $this->db_cms()->recruit_major;
	}
	
/*****************************人力资源系统专家********************************/
	/***********课程部分****************/
	function sp_c($zjid,$c){  //写
		return $this->sp($zjid)->c($c);
	}
	
	function sp_u($w,$u){ //修
		return $this->sp($w['zjid'])->w($w)->u($u);
	}
	
	function sp_s($zjid,$w){ //查【单条】
		return $this->sp($zjid)->w($w)->s();
	}
	
	function sp_ss($zjid,$w=array(),$page='',$pagesize=''){ //查【多条】
		if($page){
			$rs['data'] = $this->sp($zjid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->sp($zjid)->w($w)->n();
			return $rs;
		}else{
			return $this->sp($zjid)->w($w)->ss();
		}
	}

	function sp_del($zjid,$w){//删除多个
		return $this->sp($zjid)->w($w)->del_all();
	}
	
	function sp($zjid){
		$sp= 'recruit_sp_'.util::end1($zjid);
		return $this->db_cms()->$sp;
	}
	/***********查看视频部分****************/
	function look_c($uid,$c){  //写
		return $this->Look($uid)->c($c);
	}
	
	function look_u($w,$u){ //修
		return $this->Look($w['uid'])->w($w)->u($u);
	}
	
	function look_s($uid,$w){ //查【单条】
		return $this->Look($uid)->w($w)->s();
	}
	
	function look_ss($uid,$w=array(),$page='',$pagesize=''){ //查【多条】
		if($page){
			return $this->Look($uid)->w($w)->p($page,$pagesize)->ss();
		}else{
			return $this->Look($uid)->w($w)->ss();
		}
	}
	
	function look_del($uid,$w){//删除多个
		return $this->Look($uid)->w($w)->del_all();
	}
	
	function look_n($uid,$w){//数量
		return $this->Look($uid)->w($w)->n();
	}
	
	function Look($uid){
		$sp= 'recruit_sp_look_'.util::end1($uid);
		return $this->db_cms()->$sp;
	}
	/**********************************观看视频记录表【谁看过我的】*****************************/
	function zjlook_c($zjid,$c){  //写
		return $this->Zjlook($zjid)->c($c);
	}
	
	function zjlook_u($w,$u){ //修
		return $this->Zjlook($w['zjid'])->w($w)->u($u);
	}
	
	function zjlook_s($zjid,$w){ //查【单条】
		return $this->Zjlook($zjid)->w($w)->s();
	}
	
	function zjlook_ss($zjid,$w,$page='',$pagesize=''){ //查【多条】
		if($page){
			$rs['data'] = $this->Zjlook($zjid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->Zjlook($zjid)->w($w)->n();
			return $rs;
		}else{
			return $this->Zjlook($zjid)->w($w)->ss();
		}
	}
	
	function Zjlook($zjid){
		$lo= 'recruit_sp_zjlook_'.util::end1($zjid);
		return $this->db_cms()->$lo;
	}
/*************VIP专家********************/
	function vbase_ss($w=array()){//查询多个
		return $this->Vbase()->w($w)->ss();
	}
	
	function vbase_s($w){//查询单个
		return $this->Vbase()->w($w)->s();
	}
	
	function vbase_u($w,$u){//修改
		return $this->Vbase()->w($w)->u($u);
	}
	
	function vbase_d($w){//删除
		return $this->Vbase()->w($w)->d();
	}
	
	function vbase_c($w){//写入
		return $this->Vbase()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function Vbase(){
		return $this->db_cms()->recruit_vip_base;
	}
	
/***********************vip专家发布职位统计**************************/
	function vtongji_ss($w=array()){//查询多个
		return $this->vtongji()->w($w)->ss();
	}
	
	function vtongji_s($w){//查询单个
		return $this->vtongji()->w($w)->s();
	}
	
	function vtongji_u($w,$u){//修改
		return $this->vtongji()->w($w)->u($u);
	}
	
	function vtongji_d($w){//删除
		return $this->vtongji()->w($w)->d();
	}
	
	function vtongji_c($w){//写入
		return $this->vtongji()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function vtongji(){
		return $this->db_cms()->recruit_vzj_count;
	}
/*************企业/专家下载简历历史表********************/
	function jlxz_c($qid,$c){  //写
		return $this->Jlxz($qid)->c($c);
	}
	
	function jlxz_u($w,$u){ //修
		return $this->Jlxz($w['qid'])->w($w)->u($u);
	}
	
	function jlxz_s($qid,$w){ //查【单条】
		return $this->Jlxz($qid)->w($w)->s();
	}
	
	function jlxz_ss($qid,$w=array(),$page='',$pagesize=''){ //查【多条】
		if($page){
			$rs['data'] = $this->Jlxz($qid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->Jlxz($qid)->w($w)->n();
			return $rs;
		}else{
			return $this->Jlxz($qid)->w($w)->ss();
		}
	}
	
	function jlxz_d($qid,$w){//删除
		return $this->Jlxz($qid)->w($w)->d();
	}
	
	function jlxz_del($qid,$w){//删除多个
		return $this->Jlxz($qid)->w($w)->del_all();
	}
	
	function Jlxz($qid){ //以企业id分表
		$id= 'recruit_jlxz_'.util::end1($qid);
		return $this->db_cms()->$id;
	}
	
/*************im 房间********************/
	function room_c($c){  //写
		return $this->Room()->c($c);
	}

	
	function room_ss($w=''){ //查【多条】
		return $this->Room()->w($w)->ss();
	}
	function room_s($w){ //查
		return $this->Room()->w($w)->s();
	}
	
	function room_del($w){//删除多个
		return $this->Room()->w($w)->del_all();
	}
	
	function Room(){ 
		return $this->db_cms()->recruit_socket;
	}
/********************im 聊天记录【单聊】************/
	function liaot_c($uid,$c){  //写
		return $this->Liaot($uid)->c($c);
	}
	
	function liaot_u($w,$u){ //修
		return $this->Liaot($w['uid'])->w($w)->u($u);
	}
	
	function liaot_s($uid,$w){ //查【单条】
		return $this->Liaot($uid)->w($w)->s();
	}
	
	function liaot_ss($uid,$w=''){ //查【多条】
		return $this->Liaot($uid)->w($w)->ss();
	}
	
	function liaot_sf($uid,$w='',$f){ //查【多条】,有列名
		return $this->Liaot($uid)->w($w)->f($f)->ss();
	}
	
	function Liaot($uid){
		$li= 'recruit_liaot_'.util::end2($uid);
		return $this->db_cms()->$li;
	}
/********************im 聊天记录【临时群聊聊】************/
	function liaot_qc($room,$c){  //写
		return $this->Liaotq($room)->c($c);
	}
	
	function liaot_qu($w,$u){ //修
		return $this->Liaotq($w['room'])->w($w)->u($u);
	}
	
	function liaot_qs($room,$w){ //查【单条】
		return $this->Liaotq($room)->w($w)->s();
	}
	
	function liaot_qss($room,$w=''){ //查【多条】
		return $this->Liaotq($room)->w($w)->ss();
	}
	
	function Liaotq($room){
		$li= 'recruit_qliaot_'.util::end2($room);
		return $this->db_cms()->$li;
	}
/********************专家统计表******************************/	
	function zjtongji_ss($w=array()){//查询多个
		return $this->Zhtongji()->w($w)->ss();
	}
	
	function zjtongji_s($w){//查询单个
		return $this->Zhtongji()->w($w)->s();
	}
	
	function zjtongji_u($w,$u){//修改
		return $this->Zhtongji()->w($w)->u($u);
	}
	
	function zjtongji_d($w){//删除
		return $this->Zhtongji()->w($w)->d();
	}
	
	function zjtongji_c($w){//写入
		return $this->Zhtongji()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function Zhtongji(){
		return $this->db_cms()->recruit_zjia_tongji;
	}
/**********************************企业充值********************************************/
	function qyzcjl_s($w){//查询企业充值记录(单条)
		return $this->qyczjl($w['qid'])->w($w)->s();
	}
	
	function qyzcjl_ss($w){//查询企业充值记录(多条)
		return $this->qyczjl($w['qid'])->w($w)->s();
	}
	
	function qyzcjl_c($w){//企业充值写入
		return $this->qyczjl($w['qid'])->c($w);
	}
	
	function qyzcjl_d($w){//删除企业充值记录
		return $this->qyczjl($w['qid'])->w($w)->d();
	}
	
	function qyczjl($uid){
		$id= 'firm_qy_pay_'.util::end1($uid);
		return $this->db_cms()->$id;
	}
	
/***********************************冲值会员订单列表**************************************/
	function dingdan_c($uid,$c){  //写
		return $this->Dan($uid)->c($c);
	}
	
	function dingdan_u($w,$u){ //修
		return $this->Dan($w['uid'])->w($w)->u($u);
	}
	
	function dingdan_s($uid,$w){ //查【单条】
		return $this->Dan($uid)->w($w)->s();
	}
	
	function dingdan_ss($uid,$w=array(),$page='',$pagesize=''){ //查【多条】
		if($page){
			$rs['data'] = $this->Dan($uid)->w($w)->p($page,$pagesize)->ss();
			$rs['count'] = $this->Dan($uid)->w($w)->n();
			return $rs;
		}else{
			return $this->Dan($uid)->w($w)->ss();
		}
	}
	
	function dingdan_d($uid,$w){//删除
		return $this->Dan($uid)->w($w)->d();
	}
	
	
	function Dan($uid){ 
		$id= 'recruit_dingdan_'.util::end1($uid);
		return $this->db_cms()->$id;
	}
}
?>